package com.edfu.core.commons.persistence.api;

import java.util.List;

import com.edfu.core.commons.persistence.entity.CategoryEntity;

public interface ICategoryMgtPersistence {
	
	public CategoryEntity createCategory(CategoryEntity categoryEntity);
	public CategoryEntity updateCategory(CategoryEntity categoryEntity);
	public void removeCategory(CategoryEntity categoryEntity);
	public List<CategoryEntity> getCategories();
	public CategoryEntity getCategory(long categoryId);
	public CategoryEntity getCategory(String categoryName);
	public List<CategoryEntity> addCategories(CategoryEntity parentCategory, List<CategoryEntity> categories);
	public boolean isCategoryUnique(String categoryName);	

}
